export function isPromise(val: any): val is Promise<any> {
  return val && typeof val.then === 'function'
}